package service.impl;

import bean.pojo.GdDepartment;
import dao.GdDepartmentMapper;
import org.springframework.stereotype.Service;
import service.GdDepartmentService;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GdDepartmentServiceImpl implements GdDepartmentService {

    @Resource
    private GdDepartmentMapper gdDepartmentMapper;

    public int insert(GdDepartment pojo){
        return gdDepartmentMapper.insert(pojo);
    }

    public int insertList(List< GdDepartment> pojos){
        return gdDepartmentMapper.insertList(pojos);
    }

    public List<GdDepartment> select(GdDepartment pojo){
        return gdDepartmentMapper.select(pojo);
    }

    public int update(GdDepartment pojo){
        return gdDepartmentMapper.update(pojo);
    }

}
